home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1992-02-26 | 1.2 KB | 39 lines |
- '
- 'Civilization cheat
- 'By Edmund Clay
- 'Oct 94
- '
- 'Sets your treasury to 30000.
- 'The idea for this came from a letter in a magazine; I can't remember which
- 'one. This is the first AMOS version. The program just asks what the current
- 'value of the treasury is, searches through the file until it finds it, then
- 'changes it to 30000 and saves the file again. It also saves a backup in
- 'case things go horribly wrong, but they never have so far. With this cheat I
- 'reached Alpha Centauri in 1018 AD on emperor level. 30000 is the maximum.
- 'any higher and the value will just reset to 30000 or become negative.
- '
- 'Are there any other games this technique would work with? It would have to
- 'save games in standard AmigaDOS format, with no compression.
- '
- Print "Civilization(tm) cheat."
- F$=Fsel$("","","Load civilization .sve file")
- Open In 1,F$
- L=Lof(1)
- Close 1
- Reserve As Data 1,L
- Bload F$,Start(1)
- Print "What is your current treasury?"
- Input M : W=100
- Do
- Wait Key
- For Q=0 To 200
- W=W+2
- If Deek(Start(1)+W)=M
- Doke Start(1)+W,30000
- Print "saving with 30000 credits."
- Bsave F$,Start(1) To Start(1)+Length(1)
- End
- End If
- Next
- Loop
- Print "Oh no, it didn't work."